<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('结算账号明细列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>流水号：</label>
                                <input type="text" name="sequenceNo"/>
                            </li>
                            <li>
                                <label>商户号：</label>
                                <select name="merchCd" th:with="type=${@dict.getType('merch_cd')}">
                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                                </select>
                            </li>
                            <li>
                                <label>附加信息：</label>
                                <input type="text" name="addInfo"/>
                            </li>
                            <li>
                                <label>开始时间：</label>
                                <input type="text" class="time-input" placeholder="请选择开始时间" name="startDate"/>
                            </li>
                            <li>
                                <label>结束时间：</label>
                                <input type="text" class="time-input" placeholder="请选择结束时间" name="endDate"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('pay:detail:edit')}]];
        var removeFlag = [[${@permission.hasPermi('pay:detail:remove')}]];
        var merchCdDatas = [[${@dict.getType('merch_cd')}]];
        var prefix = ctx + "pay/detail";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "结算账号明细",
                firstLoad: false,
                columns: [{
                    checkbox: true
                },
                {
                    field: 'sequenceNo',
                    title: '流水号',
                    visible: false
                },
                {
                    field: 'accountNo',
                    title: '账号'
                },
                {
                    field: 'currency',
                    title: '币种'
                },
                {
                    field: 'yAmount',
                    title: '发生额'
                },
                {
                    field: 'dBal',
                    title: '期末余额'
                },
                {
                    field: 'closingBal',
                    title: '余额'
                },
                {
                    field: 'extRef',
                    title: '核心交易流水'
                },
                {
                    field: 'narrative',
                    title: '描述'
                },
                {
                    field: 'transactionNarr',
                    title: '交易代码摘要'
                },
                {
                    field: 'remark',
                    title: '备注'
                },
                {
                    field: 'tranDate',
                    title: '交易日期'
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>